<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
	<title>Insert title here</title>
	<script src="https://cdn.bootcss.com/jquery/3.2.1/jquery.min.js"></script>
	<script src="https://cdn.bootcss.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
	<link href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.css" rel="stylesheet">
</head>
<body>
	<div class="container">
	 	<h2>POST-方法</h2>
	<form class="form-horizontal" role="form" action="index/advertiser.do" method="post">
		<div class="form-group">
			<label class="col-sm-2 control-label" for="advertiserName">advertiserName:</label>
			<div class="col-sm-10">
				<input class="form-control" type="text" name="advertiserName">
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-2 control-label" for="description">description:</label>
			<div class="col-sm-10">
				<input class="form-control" type="text" name="description">
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-2 control-label" for="creatTime">creatTime:</label>
			<div class="col-sm-10">
				<input class="form-control" type="date" name="creatTime" >
			</div>
		</div>
		<button type="submit" class="col-sm-offset-6 btn btn-default">POST</button>
	</form>
	</div>

<script >
	$(document).ready(function(){
		
	       // var advertiserParam={};  
	      //  advertiserParam.advertiserName="name";
	        var advertiserParam = {"advertiser_name":"test","user_name":"test","description":"test"};  
	        $.ajax({ 
	            type:"POST", 
	            url:"index/advertiser.do", 
	            dataType:"json",      
	            contentType:"application/json",               
	            data:JSON.stringify(advertiserParam), 
	            success:function(data){ 
	                                       
	            } 
	         }); 
	});
</script>
</body>
</html>